package com.shop.item.atom.dao;

import com.shop.common.entity.item.ItemBase;
import com.shop.common.model.param.item.ItemBaseInput;
import com.shop.common.model.result.item.ItemBaseOutput;
import com.shop.item.api.model.Item;

import java.util.List;

public interface ItemBaseMapper {

    int deleteByIds(List<Integer> ids);

    int deleteBySelective(ItemBaseInput item);

    /**
     *
     * @mbggenerated 2019-02-21
     */
    int insertSelective(ItemBase record);

    /**
     *
     * @mbggenerated 2019-02-21
     */
    ItemBase selectByPrimaryKey(Integer itemId);

    /**
     *
     * @mbggenerated 2019-02-21
     */
    int updateByPrimaryKeySelective(ItemBase record);

    /**
     * @Author zhoulk
     * @Description //根据参数实体查询商品
     * @Date 14:58 2019/2/21
     *
     * @Param [item]
     * @return com.shop.common.entity.item.ItemBase
     * @errorCode //TODO
     **/
    List<ItemBaseOutput> selectBySelective(ItemBaseInput item);

    List<ItemBaseOutput> selectItemBaseList(ItemBaseInput item);

    /**
     * @Author zhoulk
     * @Description //查询商品全部信息
     * @Date 15:01 2019/2/21
     *
     * @Param [item]
     * @return com.shop.item.atom.model.Item
     * @errorCode //TODO
     **/
    Item selectItem(ItemBaseInput item);

    /**
     * @Author zhoulk
     * @Description //查询商品列表
     * @Date 15:02 2019/2/21
     *
     * @Param [item]
     * @return java.util.List<com.shop.item.atom.model.Item>
     * @errorCode //TODO
     **/
    List<Item> selectItemList(ItemBaseInput item);


    int mdfItemStatus(ItemBase itemBase);
}